package com.ynsj.service;

import com.ynsj.domain.SysMenu;
import com.ynsj.domain.SysRolePrivilege;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ynsj.model.RolePrivilegesParam;

import java.util.List;

public interface SysRolePrivilegeService extends IService<SysRolePrivilege>{


    /**
     * 根据角色查询角色菜单下的权限
     * @param roleId
     * @return
     */
    List<SysMenu> findSysMenuAndPrivileges(Long roleId);

    boolean grantPrivileges(RolePrivilegesParam rolePrivilegesParam);
}
